package me.zhengjie.minbearwcs.dao.inbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.inbound.inf.InboundOrderHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.inbound.InboundOrderHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.inbound.history.InboundOrderHistory;
import org.springframework.stereotype.Repository;


@Repository
@RequiredArgsConstructor
public class InboundOrderHistoryDaoImpl implements InboundOrderHistoryDao {

    private final InboundOrderHistoryMapper mapper;

    @Override
    public boolean insert(InboundOrderHistory inboundOrderHistory) {
        return mapper.insert(inboundOrderHistory) == 1;
    }
}
